<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */

/* @var $exception Exception */

use yii\helpers\Html;

$this->title = $name;
$this->params['breadcrumbs'][] = ['label' => $this->title, 'icon' => 'layui-icon-notice'];

?>
<div class="layui-card">

    <div class="layui-card-body">
        <fieldset class="layui-elem-field layui-field-title">
            <legend><?= Html::encode($this->title) ?></legend>
            <div class="layui-field-box">
                <blockquote class="layui-elem-quote">
                    <?= nl2br(Html::encode($message)) ?>
                </blockquote>
                <p class="alert alert-danger">
                    The above error occurred while the Web server was processing your request.
                </p>
                <p class="alert alert-danger">
                    Please contact us if you think this is a server error. Thank you.
                </p>
                <table class="layui-table">
                    <tr>
                        <td>Code</td>
                        <td><?= $exception->getCode() ?></td>
                    </tr>
                    <tr>
                        <td>Message</td>
                        <td><?= $exception->getMessage() ?></td>
                    </tr>
                    <tr>
                        <td>File</td>
                        <td><?= $exception->getFile() ?></td>
                    </tr>
                    <tr>
                        <td>Line</td>
                        <td><?= $exception->getLine() ?></td>
                    </tr>
                    <tr>
                        <td>Previous</td>
                        <td><?= $exception->getPrevious() ?></td>
                    </tr>
                    <tr>
                        <td>Trace</td>
                        <td><?= $exception->getTraceAsString() ?></td>
                    </tr>
                </table>
            </div>
        </fieldset>
    </div>
    
</div>
